﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GoDive.Contract
{
    public class tarticle
    {
        [Key]
        public long ID { get; set; }
        public long DestinationID { get; set; }
        public long UserID { get; set; }
        [NotMapped]
        public tuser User { get; set; }

        /// <summary>
        /// 文章类别
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 题图路径
        /// </summary>
        public string Pic { get; set; }

        /// <summary>
        /// 文章概要
        /// </summary>
        public string Summary { get; set; }

        /// <summary>
        /// 文章内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 是否首页显示
        /// </summary>
        public bool IsHome { get; set; }

        /// <summary>
        /// 浏览数
        /// </summary>
        public long ViewCount { get; set; }

        /// <summary>
        /// 收藏数
        /// </summary>
        public long FavoriteCount { get; set; }

        /// <summary>
        /// 评论数
        /// </summary>
        public long CommentCount { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime DataChangeTime { get; set; }
    }
}